package com.ruoyi.homework.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * homework对象 homework
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
public class Homework extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long homeworkId;

    /** 课程 */
    @Excel(name = "课程")
    private String homeworkName;

    /** 分数 */
    @Excel(name = "分数")
    private Long courseManageId;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    public void setHomeworkId(Long homeworkId) 
    {
        this.homeworkId = homeworkId;
    }

    public Long getHomeworkId() 
    {
        return homeworkId;
    }

    public void setHomeworkName(String homeworkName) 
    {
        this.homeworkName = homeworkName;
    }

    public String getHomeworkName() 
    {
        return homeworkName;
    }

    public void setCourseManageId(Long courseManageId) 
    {
        this.courseManageId = courseManageId;
    }

    public Long getCourseManageId() 
    {
        return courseManageId;
    }

    public void setDeadline(Date deadline) 
    {
        this.deadline = deadline;
    }

    public Date getDeadline() 
    {
        return deadline;
    }

    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("homeworkId", getHomeworkId())
            .append("homeworkName", getHomeworkName())
            .append("courseManageId", getCourseManageId())
            .append("createTime", getCreateTime())
            .append("deadline", getDeadline())
            .append("state", getState())
            .toString();
    }
}
